'use strict';
exports.main = async (event, context) => {
	const db = uniCloud.databaseForJQL({
			event,
			context 
		});
	const info=await db.collection("link").where({index:event.index}).get();
	if(info.data.length==0){
		return {item_id:null}
	}else{
		return {item_id:info.data[0].item_id}
	}
};
